package com.hdu.seckilldemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hdu.seckilldemo.pojo.User;
import com.hdu.seckilldemo.vo.LoginVo;
import com.hdu.seckilldemo.vo.RespBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lwy
 * @since 2023-02-07
 */
public interface IUserService extends IService<User> {
    //登陆功能
    public RespBean doLogin(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);
    //根据cookie获取用户
    public User getUserByCookie(String userTicket, HttpServletRequest request, HttpServletResponse response);
    //更新密码
    public RespBean updatePassword(String userTicket, String password,HttpServletRequest request, HttpServletResponse response);
}
